package cn.nuc.wwb_1248.proj.serviceImpl;

import cn.nuc.wwb_1248.proj.dao.wwbBookDao;
import cn.nuc.wwb_1248.proj.wwbBook;
import cn.nuc.wwb_1248.proj.service.wwbBookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class wwbBookServiceImpl implements wwbBookService {
    @Autowired
    private wwbBookDao wwbBookDao;

    @Override
    public wwbBook getBook(String id) {
        return wwbBookDao.getBook(id);
    }

    @Override
    public Boolean insertBook(wwbBook wwbBook) {
        return wwbBookDao.insertBook(wwbBook);
    }

    @Override
    public List<wwbBook> findAllBook() {
        return wwbBookDao.findAllBook();
    }
}
